package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseIdReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BasePageResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.logSystem.LogSystemReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.logSystem.LogSystemResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.logapi.LogApiDetailResVo;
import com.zmj.sy.mom.srv.aps.service.LogSystemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "日志管理-操作日志")
@RestController
@RequestMapping("/logSystem")
public class LogSystemController {

    private final LogSystemService logSystemService;

    @ApiOperation("操作日志")
    @GetMapping("/log")
    public BasePageResVo<LogSystemResVo> log(LogSystemReqVo reqVo){
        return logSystemService.log(reqVo);
    }

    @ApiOperation("查看操作日志详细信息")
    @GetMapping("/detail")
    public LogApiDetailResVo detail(BaseIdReqVo reqVo) {
        return logSystemService.detail(reqVo);
    }

}
